<table  class="table table-striped table-bordered table-hover" width="100%">
	   <thead>
			<tr>
				 <th><?php echo __('School.Type');?></th>
				 <th><?php echo __('School.Season_id');?></th>
				 <th><?php echo __('Season.Season_time');?></th>
				 <th><?php echo __('School.School_id');?></th>
				 <th><?php echo __('School.Book_num');?></th>
				 <th><?php echo __('School.Book_price');?></th>
				 <th><?php echo __('Season.Gift_books');?></th>
				 <th><?php echo __('School.Coming_num');?></th>
				 <th><?php echo __('School.People_num');?></th>
				 <th><?php echo __('Desc');?></th>
			     <th><?php echo __('Operate');?></th>
			</tr>
	   </thead>
	   <tbody>
	   <?php if(!empty($WeekInfo[$key])){?>
			<?php foreach($WeekInfo[$key] as $k=>$v){?>
					<tr>
						<td><?php echo $v['type_text'];?></td>
						<td><?php echo !empty($v['season_id']) ? TableField('Season','name',$v['season_id']) : '-';?></td>
						<td><?php echo !empty($v['season_id']) ? TableField('Season','season_time',$v['season_id']) : '-';?></td>
						<td><?php echo !empty($v['school_id']) ? TableField('DataSchool','name',$v['school_id']) : '-';?></td>
						<?php 
						    if($v['type'] == 2 || $v['type'] == 3){ 
						    	if($v['zschool_id']){
						    		$v['gift_books'] = TableField('School','gift_books',$v['zschool_id']);
						    		$v['coming_num'] = TableField('School','coming_num',$v['zschool_id']);
						    		$v['people_num'] = TableField('School','people_num',$v['zschool_id']);
						    	}

							} 
						?>

						<td><?php echo $v['book_num'];?></td>
						<td><?php echo $v['book_price'];?></td>
						<td><?php echo $v['gift_books'];?></td>
						<td><?php echo $v['coming_num'];?></td>
						<td><?php echo $v['people_num'];?></td>

						<td><?php echo $v['desc'];?></td>
						<td >
							<?php if(isset($vo['edit']) && $v['type'] == 1){ ?>
								<a href="javascript:;" class="btn btn-primary btn-xs" onclick="edit(<?php echo $v['id'];?>,'<?php echo $key;?>')" title="修改"><i class="fa fa-edit"></i>&nbsp;修改</a>
							<?php }?>
							<?php if(isset($vo['delete'])){ ?>
								<a href="javascript:;" onclick="del(<?php echo $v['id'];?>,'<?php echo $key;?>')" title="删除" class="btn btn-danger btn-xs"><i class="fa fa-remove"></i>&nbsp;删除</a>
							<?php }?>
						</td>
					</tr>
			 <?php }?>
		 <?php }?>
	   </tbody>
	
</table>